package com.example.gatewayzuul.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2020/7/17 12:19
 * @Version 1.0
 **/
@RestController
@Slf4j
@RefreshScope
public class TestController {

    @Value("${password}")
    String password;

    @Value("${message}")
    String message;


    @RequestMapping("/show")
    public void show(){
        log.info("==========="+message+"========="+password);
    }




}
